<script>
    export default{
        data(){
            return{
                subject:'Web前端框架技术',
                score:80
            }
        },
        methods:{
            clickHandler(){
                this.$emit('score',this.subject,this.score)
            }
        }
    }
</script>

<template>
    <div>
        <button @click="clickHandler">Call father</button>
    </div>
</template>

<style scoped>
</style>
